package design_pattern.proxy.test3;

/**
 * Created by WeiDingKuo on 2017/10/25 21:12
 * <p>
 * 动态代理
 * 被代理对象没有实现接口，使用cglib动态代理方式进行代理
 */
public class Test {
    public static void main(String[] args) {
        TargetImpl target = new TargetImpl();
        TargetImpl proxy = (TargetImpl) new ProxyFactory(target).getProxyInstance();
        proxy.dosomething();
    }
}
